<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta name="description" content="">
    <meta http-equiv="x-dns-prefetch-control" content="on">

    <title>我的</title>
    <link href="../../css/css.css" rel="stylesheet" type="text/css">
    <script src="../../js/jquery-v1.11.2.min.js"></script>
    <script src="../../js/driver.js"></script>
    <script src="../../js/common.js"></script>
</head>
<body>
<section class="user-info-area">
    <div class="user-info-photo"><img src="../../img/user_photo.png" width="100%" height="100%"/></div>
    <label class="mt10" id="userName"></label>
    <label class="mt10 font12"><span id="vehicleTypeName"></span>&nbsp;&nbsp;<span id="vehicleNum"></span></label>
</section>

<section class="itemgroup mt10 p15">
    <div class="oneitem">
        <i class="iconfont font18 mr10">&#xe725;</i>
        手机号
        <font class="right tr font12 gray" id="userMobile"></font>
    </div>
    <div class="oneitem">
        <i class="iconfont font18 mr10">&#xe727;</i>
        身份证号
        <font class="right tr font12 gray" id="cid"></font>
    </div>
    <div class="oneitem" onclick="gotoaccount()">
        <i class="iconfont font18 mr10">&#xe726;</i>
        银行卡号
        <i class="iconfont rightsmallicon">&#xe6db;</i>
        <font class="right tr font12 gray" id="accountNum"></font>
    </div>

    <div class="oneitem" onclick="gotoWallet()">
        <i class="iconfont font18 mr10">&#xe724;</i>
        我要提现
        <i class="iconfont rightsmallicon">&#xe6db;</i>
    </div>
    <div class="oneitem" onclick="gotoFeeInfo()">
        <i class="iconfont font18 mr10">&#xe722;</i>
        收费标准
        <i class="iconfont rightsmallicon">&#xe6db;</i>
    </div>
    <div class="oneitem" onclick="pushMessage()">
        <i class="iconfont font18 mr10">&#xe721;</i>
        系统消息
        <i class="iconfont rightsmallicon">&#xe6db;</i>
    </div>
    <div class="oneitem" onclick="gotoPrint()">
        <i class="iconfont font18 mr10">&#xe727;</i>
        打印设置
        <i class="iconfont rightsmallicon">&#xe6db;</i>
    </div>
    <a href="about.html">
        <div class="oneitem">
            <i class="iconfont font18 mr10">&#xe720;</i>
            关于我们
            <i class="iconfont rightsmallicon">&#xe6db;</i>
        </div>
    </a>
    <div class="oneitem" onclick="gotoMachent()">
        <i class="iconfont font18 mr10">&#xe726;</i>
        客户推广
        <i class="iconfont rightsmallicon">&#xe6db;</i>
    </div>
    <div class="oneitem" onclick="gotoCallService('65376537')">
        <i class="iconfont font18 mr10">&#xe711;</i>
        交运客服
        <i class="iconfont rightsmallicon">&#xe6db;</i>
        <font class="right tr font12 gray">65376537</font>
    </div>
</section>
<section class="itemgroup mt15">
    <div class="exit" onclick="exit()">退出登录</div>
</section>

<script type="text/javascript">
    $(function () {
        //token验证
        checkDriverToken();
    });

    $(document).ready(function () {
        var url = _global.serverHost + "/driverInfo/me.htm";
        var data = {driverUuid: getCookie("driverUuid")};
        _callAjaxRequest(url, data, callBack);

        function callBack(data) {

            var user = data.user;

            $("#userMobile").html(user.mobile);
            $("#userName").html(user.userName);
            $("#cid").html(data.cid);
            $("#vehicleTypeName").html(data.trackModel?data.trackModel[0].vehicleTypeName:"");
            $("#vehicleNum").html(data.vehicleNum);
            $("#accountNum").html(data.accountNum);

        }

    });
		function gotoPrint(){
			delegate.gotoPrint();
		}
		
		function gotoCallService(tel){
			delegate.call(tel);	
		}
		
		function gotoMachent(){
				window.location.href = "client.html";
		}
		
		function gotoFeeInfo(){
			window.location.href = "../../price_list.html";
		}
		
    function exit() {
        delCookie("driverUuid");
        window.location.href = "../login.html";
    }
    function gotoWallet() {
        window.location.href = "../wallet/index.html";
    }
    function gotoaccount() {
        window.location.href = "../wallet/account.html";
    }
    function pushMessage() {
    	window.location.href = "../wallet/message.html";
    }
</script>
</body>
</html>